<%@ page contentType="text/html; charset=utf-8" %>
<%@ page import="com.uuticket.policy.*" %>
<%@ page import="com.uuticket.processor.*" %>
<%@ page import="java.util.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String carrier = request.getParameter("carrier");
String cityPair = request.getParameter("cityPair");
String outwardPlane = request.getParameter("outwardPlane");
String returnPlane = request.getParameter("returnPlane");
String outwardDate = request.getParameter("outwardDate");
String returnDate = request.getParameter("returnDate");
String time = request.getParameter("time");
String passengerNo = request.getParameter("passengerNo");
String classType = request.getParameter("classType");
Processor p = ProcessorFactory.getProcessor(carrier);
/*
List test = new ArrayList();
Map map = new HashMap();
map.put("carrier", "CA");
map.put("cityPair", "PEK-CDG");
map.put("outwardPlane","CA933");
map.put("returnPlane","CA934");
map.put("outwardDate","2009-12-01");
map.put("returnDate","2009-12-19");
map.put("time","0800,0800");
//map.put("time","0800");
map.put("passengerNo","1");
map.put("class","Y");
test.add(map);
*/
List test = new ArrayList();
Map map = new HashMap();
map.put("carrier", carrier.toUpperCase());
map.put("cityPair", cityPair.toUpperCase());
map.put("outwardPlane",outwardPlane.toUpperCase());
map.put("returnPlane",returnPlane.toUpperCase());
map.put("outwardDate",outwardDate);
map.put("returnDate",returnDate);
map.put("time",time);
//map.put("time","0800");
map.put("passengerNo",passengerNo);
map.put("class",classType.toUpperCase());
test.add(map);
List result = p.excuteQTE(test);
Map resultMap = (Map)result.get(0);
out.print("查询结果 -----------------------");
out.print("<BR>");
out.print("仓位: " + resultMap.get("bunk"));
out.print("<BR>");
out.print("返回票面价: " + resultMap.get("price"));
out.print("<BR>");
out.print("返回税价: " + resultMap.get("TAX"));
out.print("<BR>");
out.print("去程航班: " + resultMap.get("outwardPlane"));
out.print("<BR>");
out.print("出发日期: " + resultMap.get("outwardDate"));
out.print("<BR>");
out.print("起飞时间: " + resultMap.get("outTakeOffTime"));
out.print("<BR>");
out.print("降落时间: " + resultMap.get("outPutDownTime"));
out.print("<BR>");
out.print("回程航班: " + resultMap.get("returnPlane"));
out.print("<BR>");
out.print("回程起飞时间: " + resultMap.get("returnTakeOffTime"));
out.print("<BR>");
out.print("回程降落时间: " + resultMap.get("returnPutDownTime"));
out.print("<BR>");
out.print("Q价: " + resultMap.get("Q"));
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	<script language="JavaScript" src="js/meizzDate1.js"></script>
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
  </body>
</html>
